<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title>美食信息</title>
    <link rel="stylesheet" type="text/css" href="assets/css/bootstrap.min.css">
</head>
<body>
     <h1 align="center" style="margin-right:20px">美食类型信息列表</h1>
     <table align="center" class="table table-bordered">
        <tr>
            <th class="text-center">序号</th>
            <th class="text-center">美食类别名称</th>
            <th class="text-center">操作 <a href="admin.php?c=type&m=form">添加</a></th>
        </tr>
     <?php

        foreach($data['types'] as $row){
            echo'<tr>';
            echo'<td class="text-center">'.$row['tid'].'</td>';
            echo'<td class="text-center">'.$row['typename'].'</td>';
            echo '<td class="text-center"><a href="admin.php?c=type&m=mod&id='.$row['tid'].'" class="btn btn-success" href="#" role="button">修改</a>|<a href="admin.php?c=type&m=del&id='.$row['tid'].'" onClick="return confirm(\'确定要删除吗？\');" class="btn btn-danger" href="#" role="button">删除</a></td>';
            echo '</tr>';

        }
        echo '</table>';       
?>
</table>
</body>
</html>